'use strict'

import { config } from './config'

const SHARE_UPLOAD_URL = config.shareUploadUrl
const HOST_URL = config.apiUrl
const UPLOAD_URL = config.uploadUrl

let requestApi = {
    registManager: 'https://sellerapi1.ofashion.com.cn/team_leader_regist_account_info',
    getManagerInfo: 'https://sellerapi1.ofashion.com.cn/get_manager_info',
    gethotconfig: HOST_URL + '/gethotconfig', // 获取接口下发的配置信息
    getConfigData: HOST_URL + '/get_config_data', // 获取接口下发的配置信息
    hotGoodsUrl: HOST_URL + '/wechat_home',                        // 获取推荐商品
    goodsUrl: HOST_URL + '/wechat_search_goods',                   // 获取授权商品瀑布流
    // searchUrl: HOST_URL + '/search',                               // 搜索商品
    storeUrl: HOST_URL + '/wechat_get_seller_index_info',          //店铺首页
    storeDetailUrl: HOST_URL +'/wechat_get_seller_detail',         //店铺详情
    followuserUrl: HOST_URL + '/followuser',                       //关注
    loginUrl: HOST_URL + '/small_program_login',                   // 登录
    getBrandActivityUrl: HOST_URL + '/get_brand_activity_info',     // guccl活动页
    signUrl: HOST_URL + '/register_account',                                 // 注册
    forgetPasswordUrl: HOST_URL + '/reset_password',                     // 忘记密码
    countryCodeUrl: HOST_URL + '/get_country_code',                // 获取区号
    vCodeUrl: HOST_URL + '/requestvcode',                              // 获取验证码
    goodsDetailUrl: HOST_URL + "/wechat_get_goods_detail",         // 商品详情
    setFavoriteGoods: HOST_URL + '/favoriteGoods/setFavoriteGoods',  // 商品加入心愿单
    cancelFavoriteGoods: HOST_URL + '/favoriteGoods/cancelFavoriteGoods',  // 商品取消心愿单
    confirmAddressUrl: HOST_URL + '/get_user_address',             // 确认订单获取收获地址信息
    payUrl: HOST_URL + '/post_trade_order_and_pay',                // 下单 （现货时下单和支付同一）
    weixinPayUrlAgent: HOST_URL + '/wechat_small_program_pay',      // 微信支付 代购
    wxLivePayUrl: HOST_URL + '/wechat_live_program_pay',      // 视频号订单支付
    weixinPayCallback: HOST_URL + '/wechat_post_trade_pay',         // 微信支付回调
    addressListUrl: HOST_URL + '/get_user_address',                  // 地址列表
    uploadUrl: UPLOAD_URL + '/upload',                             // 上传
    addressSaveUrl: HOST_URL + '/post_user_address',               // 地址保存
    receiveCouponUrl: HOST_URL + '/new_receive_coupon_gift',       //领取优惠卷
    receiveStoreCouponUrl: HOST_URL + '/receive_coupon',           //店铺优惠券领取
    couponListUrl: HOST_URL + "/get_user_coupon_list",             // 全部优惠券列表
    useCouponsListUrl: HOST_URL + "/get_available_coupon",         // 可用优惠券列表
    goodsCouponListUrl: HOST_URL + "/get_goods_detail_coupon_list",// 商家优惠券列表
    favoriteListUrl: HOST_URL + '/search_desire_goods',            // 心愿单列表
    setPasswordUrl: HOST_URL + '/change_password',                 // 修改密码
    setAvatarUrl: HOST_URL + '/set_user_avatar_image',             // 设置头像
    setGenderUrl: HOST_URL + '/set_user_gender',                   // 设置性别
    setBirthUrl: HOST_URL + '/set_user_birthday',                  // 设置生日
    setResidenceUrl: HOST_URL + '/set_user_residence',             // 设置常驻地
    setNameUrl: HOST_URL + "/set_user_nickname",                   // 设置名字
    ProfileUrl: HOST_URL + '/get_user_profile',                    // 获取用户信息
    TypeListUrl: HOST_URL + "/get_hit_info",                       // 类目列表
    brandListUrl: HOST_URL + "/wechat_get_buyable_brands",         // 品牌列表
    searchResultUrl: HOST_URL + "/wechat_search_goods",           // 商品瀑布流
    topicDetailUrl: HOST_URL + "/get_new_topic_detail",           // 专题详情
    subscribeLiveUrl: HOST_URL + "/liveStudio/subscribeLive",           // 订阅直播
    topicRecommendUrl: HOST_URL + "/wechat_search_goods",          // 专题详情
    topicListUrl: HOST_URL + "/get_new_topics",                   // 专题列表
    logisticUrl: HOST_URL + "/get_new_trade_logistics_detail",     // 物流详情
    orderListUrl: HOST_URL +"/get_new_trade_list",               // 订单列表
    orderDetailUrl: HOST_URL + '/wechat_get_order_detail',         // 订单详情
    orderDeleteUrl: HOST_URL + '/delete_trade',                    // 删除订单
    orderCancelUrl: HOST_URL + '/post_trade_cancel',               // 取消订单
    remindDeliveryUrl: HOST_URL + '/remind_seller_delivery',       // 提醒发货
    confirmSignUrl: HOST_URL + '/post_trade_sign',                 // 确认收货
    tradeCommentUrl: HOST_URL + '/post_trade_comment',             // 订单评价
    activityListUrl: HOST_URL + '/wechat_get_activity_list',       // 活动列表
    activityDetailUrl: HOST_URL + '/get_goods_collections',               // 活动详情
    intimatePurchaseDetailUrl: HOST_URL + '/wechat_intimate_purchase_info',  // 亲密购详情
    reservationGoodsUrl: HOST_URL + '/get_reservation_goods_info',      //预约活动
    reservationGoodsInfoUrl: HOST_URL + '/post_subscribe_goods_info',   //预约商品
    phoneInfoUrl: HOST_URL + '/post_reservation_goods',      //短信提醒
    reservationListUrl: HOST_URL + '/get_user_reservation_list',     //预约列表
    reservationWinUrl: HOST_URL + '/get_reservation_winning',       //中签
    reservationNotWinUrl: HOST_URL + '/get_reservation_not_winning',       //未中签
    midYearActivityUrl: HOST_URL + '/get_discount_promotion_activity_list',      //年中促销活动
    loverActivityUrl: HOST_URL + '/get_tanabata_activity_list',      //七夕活动
    shareUploadLogUrl: SHARE_UPLOAD_URL + '/reported_data_log',       // 神策数据上报
    logUploadUrl: 'https://data2.ofashion.com.cn:21445/postlog',          // 埋点数据上报
    shortToLongUrl: HOST_URL + '/get_original_link',        // 短连接还原为长链接
    getCertificatesVcodetUrl: HOST_URL + '/get_seller_certificates_vcode',         // 获取验证码
    getCertificatesInfoUrl: HOST_URL + '/get_certificates_info',                   // 获取营业执照信息
    getProtocolContentUrl: HOST_URL + '/get_protocol_content',                     // 获取协议内容
    getIdCardListUrl: HOST_URL + '/get_id_card_list', // 获取身份认证列表
    createIdCardUrl: HOST_URL + '/create_id_card_info', // 增加认证身份
    updateIdCardUrl: HOST_URL + '/update_id_card', // 修改认证身份
    webOssAuthUrl: HOST_URL + '/get_web_oss_auth', //  上传授权
    webOssAuthUrl: HOST_URL + '/get_web_oss_auth', //  上传授权
    checkIdentityInformation: HOST_URL + '/wechat_check_identity_information', // 确认订单页面是否需要补充身份信息
    verifyUserIdentityInfo: HOST_URL + '/wechat_verify_user_identity_info', // 校验用户身份证信息
    getMainSpuDetail: HOST_URL + '/spu/getMainSpuDetail', // 获取主力SPU详情
    getSpuDetailRecommendList: HOST_URL + '/spu/getSpuDetailRecommendList', // 获取推荐列表
    setFavoriteSpu: HOST_URL + '/favoriteSpu/setFavoriteSpu', // 收藏SPU心愿单
    cancelFavoriteSpu: HOST_URL +  '/favoriteSpu/cancelFavoriteSpu', // 取消收藏SPU心愿单
    getMainSpuMountedArtList: HOST_URL +  '/spu/getMainSpuMountedArtList', // 预约货号列表
    subscribeArtSpuRemind: HOST_URL +  '/spu/subscribeArtSpuRemind', // 预约到货提醒
    getSpuContentList: HOST_URL + '/spu/getSpuContentList', // SPU内容详情列表
    getSpuGoodsList: HOST_URL + '/spu/getMainSpuGoodsList', // SPU主力商品列表
    likeCommunityContent: HOST_URL + '/community/likeCommunityContent', // 点赞内容
    cancelLikeCommunityContent: HOST_URL + '/community/cancelLikeCommunityContent', // 取消点赞内容
    getCommunityContentDetail: HOST_URL + '/community/getCommunityContentDetail', //内容详情
    setCollectCommunityContent: HOST_URL + '/community/setCollectCommunityContent', //收藏内容
    cancelCollectCommunityContent: HOST_URL + '/community/cancelCollectCommunityContent', //取消收藏内容
    attentionBlogger: HOST_URL + '/community/attentionBlogger', //关注博主
    setLikeBuyerShow: HOST_URL + '/buyerShow/setLikeBuyerShow', //点赞买家秀
    cancelLikeBuyerShow: HOST_URL + '/buyerShow/cancelLikeBuyerShow', //取消点赞买家秀
    getSetSpuDetail: HOST_URL + '/spu/getSetSpuDetail', // 获取系列SPU详情
    getSpuDetailRecommendList: HOST_URL + '/spu/getSpuDetailRecommendList', // SPU详情推荐列表
    phoneLogin: HOST_URL + '/small_program_auth_new', // 通过微信手机号登录
    getKey: HOST_URL + '/new_get_wechat_session_key', // 通过code获取session_key
    getdecryption: HOST_URL + '/new_data_decryption', // 解密微信加密数据
    wxShop: HOST_URL + '/wechat_falsh_shop', // 解密微信加密数据
    wxBrandInfo: HOST_URL + '/wechat_brand_goods', // 品牌在售商品
    setUserFlashName: HOST_URL + '/set_user_flashname', // 给扫描的用户添加标识
    isFlashStore: HOST_URL + '/wechat_get_seller_index_info_shop', // 是否是快闪店


    // iOS接口地址
    wishList: HOST_URL + '/favoriteSpu/getFavoriteList',      // 心愿单
    delWish: HOST_URL + '/post_favorite_goods', // 删除心愿单
    recomList: HOST_URL + '/get_goods_sell_out_recommend_list',  // 找同款
    recomGoods: HOST_URL + '/get_recommend_goods',  // 商品详情页 相关推荐
    profile: HOST_URL + '/get_user_profile',  // 商品详情页 相关推荐
    myselfInfo: HOST_URL + '/user/getMyselfInfo', // 个人主页的配置
    footprint: HOST_URL + '/user/getUserBrowsingList', // 足迹
    categoryHall: HOST_URL + '/newCategory/getNewCategoryTop', // 分类馆
    brandHall: HOST_URL + '/brand/getBrandPavilion', // 品牌馆
    searchGoodsFilterAll: HOST_URL + '/basic/searchGoodsFilterAll', // 筛选
    searchGoods: HOST_URL + '/search_goods', // 搜索商品
    allBrandsList: HOST_URL + '/brand/getBrandPavilionList', // 所有品牌列表
    allCouponGoodsList: HOST_URL + '/get_coupon_goods_list', // 优惠券可用商品
    filterTotalNum: HOST_URL + '/basic/searchGoodsFilterTotalNum', // 获取筛选后的总数
    foucsBrand: HOST_URL + '/post_favorite_brands', // 品牌关注
    goodsDetail: HOST_URL + '/get_goods_detail_new', // 商品详情
    homepage: HOST_URL + '/get_index', // 首页
    indexFeed: HOST_URL + '/get_index_feed', // 首页feed流
    topicsList: HOST_URL + 'get_new_topics', // 专题列表
    hotKey: HOST_URL + '/spu/getSpuHotSearchWord', // 热门关键词
    kingTop: HOST_URL + '/get_king_top_recommend_detail', // 金刚区
    delUserBrowsing: HOST_URL + '/user/delUserBrowsingList', // 删除足迹
    showNewUserPop: HOST_URL + '/show_new_user_pop', // 首页新老用户弹窗接口
    receiveCoupon: HOST_URL + '/receive_coupon_list', // 新手优惠，一键领取优惠券
    getNewUserInfo: HOST_URL + '/get_new_user_activity', // 新人专区
    getCollectionInfo: HOST_URL + '/collection/getGoodsCollectionInfo', // 合集
    commitShare: HOST_URL + '/post_goods_share', // 上传私域分享信息
}

export { requestApi }